<?php

/**
 * Description of Cab_Form_Decorator_MoreInformation
 *
 * @author GILLES
 */
class Cab_Form_Decorator_MoreInformation extends Zend_Form_Decorator_Abstract {

    public function render($content) {
        $placement = $this->getPlacement();

        $output = '<h2>' . $this->getOption('text') . '</h2>';

        switch ($placement) {
            case 'PREPEND':
                return $output . $content;

            case 'APPEND':
            default:
                return $content . $output;
        }
    }

}

